package game;

public class GameInitializer {

    public static void registerAllItems() {
        // 定义并注册所有道具
        MonsterGame.Item healingItem = new MonsterGame.Item("治疗药水", "healing", 50, 10);
        MonsterGame.Item attackItem = new MonsterGame.Item("攻击药水", "attack", 15, 20);
        MonsterGame.Item defenseItem = new MonsterGame.Item("防御药水", "防御", 10, 15);
        MonsterGame.Item staminaItem = new MonsterGame.Item("体力药水", "体力", 20, 15);
        MonsterGame.Item dodgeItem = new MonsterGame.Item("闪避药水", "闪避", 5, 10);
        MonsterGame.Item intelligenceItem = new MonsterGame.Item("智力药水", "智力", 5, 10);
        MonsterGame.Item damageItem = new MonsterGame.Item("伤害药水", "damage", 30, 15);
        MonsterGame.Item strongDamageItem = new MonsterGame.Item("强效伤害药水", "damage", 60, 45);

        ItemRegistry.registerItem(healingItem);
        ItemRegistry.registerItem(attackItem);
        ItemRegistry.registerItem(defenseItem);
        ItemRegistry.registerItem(staminaItem);
        ItemRegistry.registerItem(dodgeItem);
        ItemRegistry.registerItem(intelligenceItem);
        ItemRegistry.registerItem(damageItem);
        ItemRegistry.registerItem(strongDamageItem);


        // 定义并注册所有装备
        MonsterGame.Equipment woodSword = new MonsterGame.Equipment("木剑", "Weapon", 10, 0, 10);
        MonsterGame.Equipment leatherArmor = new MonsterGame.Equipment("皮甲", "Armor", 0, 5, 10);
        MonsterGame.Equipment ironSword = new MonsterGame.Equipment("铁剑", "Weapon", 20, 0, 30);
        MonsterGame.Equipment chainmail = new MonsterGame.Equipment("锁子甲", "Armor", 0, 10, 50);
        MonsterGame.Equipment dagger = new MonsterGame.Equipment("匕首", "Weapon", 15, 0, 20);
        MonsterGame.Equipment leatherBoots = new MonsterGame.Equipment("皮靴", "Armor", 0, 3, 15);

        // 使用新的 registerEquipment 方法注册装备
        ItemRegistry.registerEquipment(woodSword);
        ItemRegistry.registerEquipment(leatherArmor);
        ItemRegistry.registerEquipment(ironSword);
        ItemRegistry.registerEquipment(chainmail);
        ItemRegistry.registerEquipment(dagger);
        ItemRegistry.registerEquipment(leatherBoots);
    }
}